]> dgit.raspbian.org Git - ostree.git/commit
tests/kolainst: Fix failures on container-native FCOS
authorJoseph Marrero Corchado <jmarrero@redhat.com>
Fri, 26 Jun 2026 03:44:19 +0000 (23:44 -0400)
committerJoseph Marrero Corchado <jmarrero@redhat.com>
Fri, 26 Jun 2026 03:51:39 +0000 (23:51 -0400)
commit50506003a9d3f21cf2e7601fdce397498febfe26
tree514dc0011844f64c093b3b28a104b531ffc3d0ed
parent6ea108187ffc6da276bef6761802d941529eb983
tests/kolainst: Fix failures on container-native FCOS

On container-native FCOS (F44+), /etc/ostree/remotes.d/ may have no
.conf files since the system uses container-based updates rather than
traditional ostree remotes. This caused test failures:

- staged-deploy.sh and finalization.sh: sed on the unexpanded glob
  '/etc/ostree/remotes.d/*.conf' fails under set -euo pipefail when
  no files match. Fix by iterating with a for loop and guarding with
  test -f.

- itest-remotes.sh: 'ostree remote list' returns empty, hitting
  assert_not_reached. Fix by skipping the test gracefully on systems
  with no remotes configured.

Assisted-by: OpenCode (Claude Opus 4.6)
Signed-off-by: Joseph Marrero Corchado <jmarrero@redhat.com>
tests/kolainst/destructive/finalization.sh
tests/kolainst/destructive/staged-deploy.sh
tests/kolainst/nondestructive/itest-remotes.sh